import Vue from 'vue'
import Router from 'vue-router'
import Login from '@/views/Login'
import Home from '@/views/Home'
import zzgl from '@/views/zzgl/index'
import Dzzgl from '@/views/zzgl/Dzzgl'
import Addorganizetion from '@/views/zzgl/Addorganization'
import Resetpassword from '@/views/zzgl/Resetpassword'
import ViewDetails from '@/views/Viewdetails'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'Login',
      component: Login
    },
    {
      path: '/Home',
      name: 'Home',
      component: Home,
      meta: { title: '用户后台' },
      children: [
        {
          name:'zzgl',
          path:'/zzgl',
          commponent:zzgl,
          meta: { title: '组织管理' }
        },
        {
          name:'Dzzgl',
          path:'/zzgl/Dzzgl',
          component:Dzzgl,
          meta: { title: '党组织管理' }
        },
        {
          name: 'Addorganizetion',
          path: '/zzgl/Addorganizetion',
          component: Addorganizetion,
          meta: { title: '添加组织' }
        },
        {
          name: 'Resetpassword',
          path: '/zzgl/Resetpassword',
          component: Resetpassword,
          meta: { title: '重置密码' }
        },
        {
            name: 'ViewDetails',
            path: '/ViewDetails',
            component: ViewDetails,
            meta: { title: '详情页' }
        },
        // {
        //     name: 'partymanage',
        //     path: '/partymanage',
        //     component: partymanage,
        //     meta: { title: '党员管理'}
            
        // },
        // {
        //     name: 'addpartyuser',
        //     path: 'addpartyuser',
        //     component: addpartyuser,
        //     meta: { title: '添加党员'}
        // },
        // {
        //     name: 'partypropaganda',
        //     path: 'partypropaganda',
        //     component: partypropaganda,
        //     meta: { title: '党建宣传'}
        // },
        // {
        //     name: 'worknews',
        //     path: 'worknews',
        //     component: worknews,
        //     meta: { title: '工作新闻'},
        // },
      ]
    },
  ]
})
